import request from '@/utils/request'

// 查询绩效考核分页
export function pageTable(query) {
  return request({
    url: '/examine/table/page',
    method: 'get',
    params: query,
    factoryId:true,
  })
}

// 查询绩效考核列表
export function listTable(query) {
  return request({
    url: '/examine/table/list',
    method: 'get',
    params: query
  })
}

// 查询绩效考核详细
export function getTable(id) {
  return request({
    url: '/examine/table/info/' + id,
    method: 'get'
  })
}

// 新增绩效考核
export function addTable(data) {
  return request({
    url: '/examine/table',
    method: 'post',
    data: data,
    factoryId:true,
  })
}

// 修改绩效考核
export function updateTable(data) {
  return request({
    url: '/examine/table',
    method: 'put',
    data: data
  })
}

// 删除绩效考核
export function delTable(data) {
  return request({
    url: '/examine/table/remove/batch',
    method: 'delete',
    data
  })
}

// 导出绩效考核
export function exportTable(query) {
  return request({
    url: '/examine/table/export',
    method: 'get',
    params: query
  })
}

// 下载模板绩效考核
export function downImportTemplate() {
  return request({
    url: '/examine/table/importTemplate',
    method: 'get'
  })
}